package Homework7;

public abstract class HouseProperty {
    protected double area;
    protected double unitPrice;
    protected HouseProperty(double area, double unitPrice) {
        this.area = area;
        this.unitPrice = unitPrice;
    }
    public abstract double taxCalculation();
    public double getTotalPrice(){
        return area * unitPrice;
    }
}
